package com.example.demo;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/test")
public class TestController {

    @RequestMapping("/hello")
    public String hello(CustomParam customParam) {
        if (customParam == null) {
            return "hello";
        }
        return "Hello World! " + customParam.getName();
    }
}
